//
//  VideoEncodeViewController.m
//  FFMpegKitDemo
//
//  Created by ilongge on 2023/9/13.
//

#import "VideoEncodeViewController.h"

@interface VideoEncodeViewController ()
{
    NSString *_inputVideoFile;
    NSString *_outputVideoFile;
    
    AVFormatContext *_inputFormatContext;
    AVCodecContext *_inputVideoCodecContext;
    const struct AVCodec *_inputVideoCodec;
    int _inputVideoStreamIndex;
    AVStream *_inputVideoStream;
    AVFrame *_inputVideoFrame;
    
    AVFormatContext *_outputFormatContext;
    AVCodecContext *_outputVideoCodecContext;
    const struct AVCodec *_outputVideoCodec;
    int _outputVideoStreamIndex;
    AVStream *_outputVideoStream;
    AVFrame *_outputVideoFrame;
    
    struct SwsContext *_swsContext;
    
    int64_t _pts;
    int64_t _origin_nb_samples;
    int64_t _output_nb_samples;
    int64_t _origin_frame_count;
    int64_t _output_frame_count;
    
    dispatch_queue_t _decode_queue;
}
@end

@implementation VideoEncodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"视频编码"; 
}
 

@end
